import java.util.Scanner;

public class l7 {
    public static void main(String[] args){
        Scanner reader = new Scanner(System.in);
        System.out.println("请输入第一个数");
        double a = reader.nextDouble();
        System.out.println("请输入第二个数");
        double b = reader.nextDouble();
        System.out.println("请输入第三个数");
        double c = reader.nextDouble();
        if (a<b && a<c) {
            if (b<c){
            System.out.print("排序后为"+" "+a+" "+b+" "+c);
            }if (b>c){
                System.out.print("排序后为"+" "+a+" "+c+" "+b);
            }
        }if (b<a && b<c){
            if (a<c){
                System.out.print("排序后为"+" "+b+" "+a+" "+c);
            }if (a>c){
                System.out.print("排序后为"+" "+b+" "+c+" "+a);
            }
        }if (c<a && c<b){
            if (a<b){
                System.out.print("排序后为"+" "+c+" "+a+" "+b);
            }if (a>b){
                System.out.print("排序后为"+" "+c+" "+b+" "+a);
            }
        }
    }
}
